﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
    <style type="text/css">
body {
	margin:0px;
}
.STYLE1 {
	font-size: 12px;
	color: #FFFFFF;
}
.STYLE2 {font-size: 9px}
.STYLE3 {
	color: #033d61;
	font-size: 12px;
}
</style>
    <script src="JS/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            //显示时间
            time();

            $.get("main.ashx", { action: "getu" }, function (re) {
                var r = JSON.parse(re);
                if (r != null) {

                    $("#label1").text(r.RoleName + ": ");
                    $("#label2").text(r.UserName);
                }
            });
        });

        function time() {

            var d = new Date;

            if (parseInt(d.getMinutes())<=9) {
                if (parseInt(d.getSeconds()) <= 9) {
                    if (d.getDay() == "1") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":0" + d.getSeconds() + " 星期一";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "2") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":0" + d.getSeconds() + " 星期二";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "3") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":0" + d.getSeconds() + " 星期三";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "4") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":0" + d.getSeconds() + " 星期四";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "5") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":0" + d.getSeconds() + " 星期五";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "6") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":0" + d.getSeconds() + " 星期六";
                        $("#lbl").text(time);
                    }
                    else {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":0" + d.getSeconds() + " 星期日";
                        $("#lbl").text(time);
                    }
                } else {
                    if (d.getDay() == "1") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":" + d.getSeconds() + " 星期一";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "2") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":" + d.getSeconds() + " 星期二";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "3") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":" + d.getSeconds() + " 星期三";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "4") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":" + d.getSeconds() + " 星期四";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "5") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":" + d.getSeconds() + " 星期五";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "6") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":" + d.getSeconds() + " 星期六";
                        $("#lbl").text(time);
                    }
                    else {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":0" + d.getMinutes() + ":" + d.getSeconds() + " 星期日";
                        $("#lbl").text(time);
                    }
                }
            }else{
                if (parseInt(d.getSeconds()) <= 9) {
                    if (d.getDay() == "1") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":0" + d.getSeconds() + " 星期一";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "2") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":0" + d.getSeconds() + " 星期二";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "3") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":0" + d.getSeconds() + " 星期三";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "4") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":0" + d.getSeconds() + " 星期四";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "5") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":0" + d.getSeconds() + " 星期五";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "6") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":0" + d.getSeconds() + " 星期六";
                        $("#lbl").text(time);
                    }
                    else {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":0" + d.getSeconds() + " 星期日";
                        $("#lbl").text(time);
                    }
                } else {
                    if (d.getDay() == "1") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " 星期一";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "2") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " 星期二";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "3") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " 星期三";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "4") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " 星期四";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "5") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " 星期五";
                        $("#lbl").text(time);
                    }
                    else if (d.getDay() == "6") {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " 星期六";
                        $("#lbl").text(time);
                    }
                    else {
                        var time = d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " 星期日";
                        $("#lbl").text(time);
                    }
                }
            }

            setTimeout('time()', 900);
        }
    </script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="70" background="images/main_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="270" height="24" background="images/main_03.gif">&nbsp;</td>
            <td width="505" background="images/main_04.gif">&nbsp;</td>
            <td>&nbsp;</td>
            <td width="21"><img src="images/main_07.gif" width="21" height="24"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="38"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="270" height="38" background="images/main_09.gif">&nbsp;</td>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="77%" height="25" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                 
                </table></td>
                <td width="220" valign="bottom"  nowrap="nowrap"><div align="right"><span class="STYLE1">当前时间：<label id="lbl"><!--2015年11月7日 星期六--></label></span></div></td>
              </tr>
            </table></td>
            <td width="21"><img src="images/main_11.gif" width="21" height="38"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="8" style=" line-height:8px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="270" background="images/main_29.gif" style=" line-height:8px;">&nbsp;</td>
            <td width="505" background="images/main_30.gif" style=" line-height:8px;">&nbsp;</td>
            <td style=" line-height:8px;">&nbsp;</td>
            <td width="21" style=" line-height:8px;"><img src="images/main_31.gif" width="21" height="8"></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="28" background="images/main_36.gif">
   <div id="div_Name" style="background-image:url(images/main_32.gif);width:177px;height:28px;text-align:center;color:Blue;font-size:12px;line-height:35px;float:left">
    <label id="label1"></label><label id="label2" style="color:Red"></label>
   </div>
   <div style="float:right;font-size:12px;line-height:35px;margin-right:5px;margin-top:3px;">
    <a href="logout.aspx" ><img src="images/main_20.gif" style="border:solid 0px red"/></a>
   </div>
    </td>
  </tr>
</table>
</body>
</html>
